from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'odfs', views.OpticalDistributionFrameViewSet)
router.register(r'boards', views.BoardViewSet)
router.register(r'interfaces', views.InterfaceViewSet)

urlpatterns = [
    path('api/connect/', views.connect_interfaces, name='connect-interfaces'),
    path('api/disconnect/', views.disconnect_interfaces, name='disconnect-interfaces'),
    path('api/', include(router.urls)),
]
